package com.cby.android.olive.storage

import android.content.Context

/**
 * Description:OlivePreferences
 *
 * @author chenbaoyang
 * @create 2023/6/10 13:33
 */
object OlivePreferences : AbsPreferences() {

    private const val KEY_GRAY_STATUS = "key_gray_status"

    override fun fileName() = "olive"

    private var context: Context? = null

    fun init(context: Context) {
        this.context = context.applicationContext
    }


    fun putGrayStatus(needGray: Boolean) {
        putBoolean(context!!, KEY_GRAY_STATUS, needGray)
    }

    fun getGrayStatus() = getBoolean(context!!, KEY_GRAY_STATUS, false)

}